#include "QtUI/PackageInformationDialog.qth"
#include "QtUI/PackageInformationDialog.moh"
#include "QtUI/PackageInformationWidget.qth"
#include <QtGui/QVBoxLayout>
#include <QtGui/QDialogButtonBox>

namespace QtUI
{

PackageInformationDialog::PackageInformationDialog( QWidget* pParent)
	: QDialog( pParent)
{
	this->setWindowModality( Qt::ApplicationModal);

	QVBoxLayout* pLayout = new QVBoxLayout();
	this->setLayout( pLayout);

	pWidget_ = new PackageInformationWidget();
	pLayout->addWidget( pWidget_);

	QDialogButtonBox* pDlgButtonBox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
	pLayout->addWidget( pDlgButtonBox);

	connect( pDlgButtonBox, SIGNAL( accepted()), this, SLOT( accept()));
	connect( pDlgButtonBox, SIGNAL( rejected()), this, SLOT( reject()));
}

} // namespace QtUI
